import time

# now =  int(time.time())
# print(time.localtime(now))
import time

# 格式化成2016-03-20 11:45:39形式
print(int(time.strftime("%Y%m%d", time.localtime())))
